﻿@{
    ViewBag.Title = System.Configuration.ConfigurationManager.AppSettings["AppTitle"];
}

<style>
    .sidemenu-tree .tree-icon {
        background-image: none;
    }

    .panel-header, .accordion, .accordion .accordion-header {
        background-color:rgba(215,217,220,0);
    }

    .panel .layout-panel .layout-panel-center .panel-htop{
        /*padding:5px;*/
    }

    .haveCount {
        padding-left: 1px;
        padding-right: 1px;
        line-height: 20px;
        text-align: center;        
        color: white;
        font-size: 12px;
        font-weight: 700;
        border-radius: 20%;
        position: relative;
        bottom: -1px;
    }
    .tooltip{
        padding:1px;
        background:rgba(21, 93, 167, 0.9);
    }

    .tabs-header-noborder{
        background-color:rgba(0, 0, 0, 0);
    }

    .l-btn-text{
        font-weight:bold;
    }
</style>

<script type="text/javascript" src="@Url.Content("~/Scripts/main.js")"></script>
<body class="easyui-layout theme-layout theme-style-blue" id="mainLayout" style="background:url(/PortalLTE/Content/defaultLogin.jpg) center top / cover no-repeat;">
    <noscript>
        <div style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px;
            width: 100%; background: white; text-align: center;">
            <img src="images/noscript.gif" alt='抱歉，请开启脚本支持！' />
        </div>
    </noscript>
    <div id="northPanel" class="theme-header-layout" data-options="region:'north'" style="overflow: hidden;">
        <div class="theme-header-navigate">
            <div id="headerMenuLeft" class="left">
                <a class="l-btn theme-header-logo" style="font-size:23px;color:white;font-family:'微软雅黑',Arial,sans-serif">@System.Configuration.ConfigurationManager.AppSettings["AppTitle"]</a>
                <a href="#" class="easyui-linkbutton theme-left-menu-switch" data-options="plain:true,iconCls:'iconfont iconfont-liebiao',hasDownArrow:false"></a>
            </div>
            <div class="right">
                <a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'iconfont iconfont-dingxiang',hasDownArrow:false" onclick="myTask()"></a>
                <span id="taskCount" style="background-color: red;left:-95px"></span>
                <a href="#" class="easyui-menubutton" data-options="plain:true,iconCls:'iconfont iconfont-tixing',hasDownArrow:false" onclick="myEmail()"></a>
                <span id="messCount" class="haveCount" style="background-color: green;left:-75px">20</span>
                <a href="#" class="easyui-menubutton" data-options="plain:true,iconCls:'iconfont iconfont-tuichu',hasDownArrow:false" onclick="logOut()"></a>
            </div>
        </div>
    </div>
    <div data-options="region:'west'" class="theme-left-layout">
        <div id="LeftMenu">
        </div>
    </div>
    @*<div id="southPanel" data-options="region:'south',split:true">用户名：@ViewBag.CurrentUserName  &nbsp; 角色：@ViewBag.RoleNames  &nbsp; 职务：@ViewBag.DutyNames  &nbsp;  部门：@ViewBag.DepartName</div>*@
    <div data-options="region:'center'" style="background-color:rgba(0, 0, 0, 0);border:none;padding:3px">
        <div id="mainTab" class="easyui-tabs  theme-tabs-layout  tabs-underline" data-options="fit:true,border:false,onSelect:onTabSelect">
            <div title="首页" data-options="border:false,href:'/PortalLTE/Main/Home'">

            </div>
        </div>
    </div>
    <div id="mm" class="easyui-menu" style="width: 150px;">
        <div id="mm-tabupdate">刷新</div>
        <div class="menu-sep"></div>
        <div id="mm-tabclose">关闭</div>
        <div id="mm-tabcloseall">全部关闭</div>
        <div id="mm-tabcloseother">除此之外全部关闭</div>
        <div class="menu-sep"></div>
        <div id="mm-tabcloseright">当前页右侧全部关闭</div>
        <div id="mm-tabcloseleft">当前页左侧全部关闭</div>
        <div class="menu-sep"></div>
        <div id="mm-exit">退出</div>
    </div>
</body>
<script>
    var taskTimeSecSpan = @(ViewBag.TaskTimeSecSpan??"5")

    function pageLoad() {
        resSetTaskRotate();
    }
    function resSetTaskRotate() {
        taskTimeSecSpan = parseFloat(taskTimeSecSpan);
        if (isNaN(taskTimeSecSpan)) taskTimeSecSpan = 5;
        beginTaskRotate(taskTimeSecSpan * 1000);
    }
    function myTask() {
        openWindow('/WorkFlow/WFList/ListTab', {
            height: 500, width: 1000, onDestroy: function (res) {
                resSetTaskRotate();
            }
        });
    }

    function logOut() {
        confirmBox('是否登出?', function (r) {
            if (r) {
                commitAjax("/PortalLTE/Main/LoginOut", {
                    CallBack: function (data) {
                        window.location.href = "/PortalLTE/Login/Index";
                    }
                });
            }
        });        
    }
</script>

